@extends('admin.layout')
@section('title',$title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                订单管理
                <small>订单编辑</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 后台页面</a></li>
                <li><a href="#">订单管理</a></li>
                <li class="active">订单添加</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">订单编辑</h3>
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <!-- 更新失败 -->
                        @if(session('fail'))
                            {{session('fail')}}
                        @endif
                        @if(session('error'))
                            {{session('error')}}
                        @endif
                        <form role="form" action="/admin/order/update" method="post" enctype="multipart/form-data">
                            {{csrf_field()}}
                            
                            <div class="box-body">
                                <div class="form-group">
                                    <label for="exampleInputEmail1">订单编号</label>
                                    <input type="text" name="id" class="form-control" id="exampleInputEmail1" value="{{$data->id}}"
                                           placeholder="请输入6-18位的字符" disabled>
                                            
                                </div>
                                
                                <div class="form-group">
                                    <label for="exampleInputPassword1">订单金额</label>
                                    <input type="text" name="money" class="form-control" id="exampleInputPassword1" value="{{$data->money}}"
                                           placeholder="请正确输入的邮箱">
                                       
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">订单状态</label>
                                    <input type="text" name="status" class="form-control" id="exampleInputPassword1" value="{{$data->status}}"
                                           placeholder="请输入11位手机号">
                                       
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">用户名</label>
                                    <input type="text" name="uname" class="form-control" id="exampleInputPassword1" value="{{$data->uname}}"
                                           placeholder="请输入11位手机号" disabled>
                                       
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">收货人</label>
                                    <input type="text" name="utname" class="form-control" id="exampleInputPassword1" value="{{$data->utname}}"
                                           placeholder="请输入11位手机号">
                                       
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">收货人电话</label>
                                    <input type="text" name="uphone" class="form-control" id="exampleInputPassword1" value="{{$data->uphone}}"
                                           placeholder="请输入11位手机号">
                                       
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">收货地址</label>
                                    <input type="text" name="uaddress" class="form-control" id="exampleInputPassword1" value="{{$data->uaddress}}"
                                           placeholder="请输入11位手机号">
                                       
                                </div>
                                
                               
                                
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">更新</button>
                                <button type="reset" class="btn btn-primary">重置</button>
                            </div>
                        </form>
                    </div><!-- /.box -->

                    
                </div><!--/.col (left) -->
                <!-- right column -->
                
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection